feat(solid-query): add 'mutationOptions'#10138
Conversation
🦋 Changeset detectedLatest commit: 879b859 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds a new exported Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can scan for known vulnerabilities in your dependencies using OSV Scanner.OSV Scanner will automatically detect and report security vulnerabilities in your project's dependencies. No additional configuration is required. |
|
View your CI Pipeline Execution ↗ for commit 42a4a2e
☁️ Nx Cloud last updated this comment at |
8490b9e to
879b859
Compare
|
@birkskyum Could you review this PR? |
|
thanks for looking into this! |
🎯 Changes
Add
mutationOptionsidentity function to@tanstack/solid-query, matching the existingreact-queryandpreact-queryimplementations.packages/solid-query/src/mutationOptions.ts— identity function with 2 overloads (with/withoutmutationKey)packages/solid-query/src/index.ts— exportmutationOptionspackages/solid-query/src/__tests__/mutationOptions.test.tsx— 14 runtime testspackages/solid-query/src/__tests__/mutationOptions.test-d.tsx— 13 type testsdocs/framework/solid/reference/mutationOptions.md— docs (ref to react docs)✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
New Features
mutationOptionsutility to improve type safety for mutation configurations, including explicit handling of mutation keys and callback typings.Documentation
mutationOptions.Tests